home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 016a / safezip7.zip / SAFEZIP.DOC < prev    next >
Text File  |  1991-12-16  |  7KB  |  127 lines

  1.  
  2.                             S A F E Z I P
  3.  
  4.                               Version 7
  5.  
  6.                            by Brad Carlton
  7.  
  8.  
  9.  
  10. SafeZip is the quick and easy way to make sure that all subdirectories,
  11. volume labels and read-only, hidden or system files get included when
  12. using PKZIP and PKUNZIP.  I don't know how many times I have had to ask
  13. the question "Did you use PKUNZIP with the -d option?" when somebody
  14. complains about some program not working which had subdirectories.
  15. SafeZip will even allow you to zip your DOS boot disk.  Teledisk is NOT
  16. required for a DOS boot disk, PKZIP and PKUNZIP work just fine when you
  17. know what parameters to use.  SafeZip also does automatic virus scanning
  18. at your option.
  19.  
  20. Version 7 of SafeZip is mostly a bug fix for version 6, which was a major
  21. update.  Version 6 added support for SHEZ, but failed to automatically
  22. recreate volume labels on diskettes when used from SHEZ.  Version 7 fixes
  23. this problem.  To fix this problem, it was necessary to make SafeZip
  24. extract volume labels whenever the current drive is a floppy, which is
  25. a damn good idea anyway.  So, this fix is also an enhancement for those
  26. who don't use SHEZ.  At any rate, UNZ.EXE can now REALLY be used as a
  27. PKUNZIP front-end in SHEZ so that it is no longer necessary to exit SHEZ
  28. before running UNZ to unzip files with all the parameters required to
  29. reproduce volume labels, subdirectories and files with hidden, read-only
  30. or system attributes.  Version 7 also fixes a problem when virus scanning
  31. has been enabled with the SAFEZIP=SCAN environment variable, and UNZ was
  32. being used from within SHEZ.  The virus scan did not work under these
  33. circumstances in version 6.
  34.  
  35. As promised, ZIP.COM has been replaced with ZIP.EXE, which is now
  36. compiled with Turbo Pascal 6.0, as UNZ.EXE is.  ZIP.EXE now also uses
  37. the SAFEFLOP environment variable, which was introduced in version 6.
  38. ZIP.EXE now automatically includes the volume label when the current
  39. drive is a floppy, which is another enhancement over version 6.
  40.  
  41. ZIP.EXE is used to call PKZIP with all the magic parameters necessary to
  42. create zips which preserve all the attributes of things such as DOS boot
  43. disks.  UNZ.EXE calls PKUNZIP to reproduce the files zipped with ZIP.EXE.
  44.  
  45.  
  46. Command format:  ZIP  zipname[.ZIP]  [d[:]][\subdir]  [filenames]
  47.  
  48. Please note that only the drive letter being zipped from needs to be
  49. specified.  The colon (:) is optional, so either "A" or "A:" will work.
  50. ZIP.EXE also assumes that ALL files will be added to the zip, so it is
  51. not necessary to specify "A:*.*".  Simply "A" will do.  ZIP.EXE adds this
  52. wildcard filespec (*.*) to any filespec in the second parameter which is
  53. a single drive letter, a drive letter and a colon and any filespec ending
  54. with a backslash (\).  The *.* is necessary to ensure that PKZIP includes
  55. all subdirectories.
  56.  
  57. Volume labels are only included when zipping from a floppy disk.
  58. ZIP.EXE only knows that you are zipping from a floppy if the second
  59. parameter begins with a floppy drive letter or the current drive is a
  60. floppy.  Only drives A and B as being floppies by default, but an
  61. environment variable can be set to override this.  IBM machines
  62. sometimes have a floppy drive D, so ZIP.EXE handles this by looking for
  63. the SAFEFLOP environment variable.  If A and D are your floppy drives,
  64. then add the following command to AUTOEXEC.BAT:
  65.  
  66.    SET SAFEFLOP=AD
  67.  
  68. The parameters used are mostly the same as if you were using PKZIP and
  69. PKUNZIP directly.  SafeZip just adds the parameters that are too easily
  70. forgotten but required to practice safe zipping.  If the drive and
  71. subdirectory are omitted, it defaults to the current directory.  The
  72. "filenames" parameter is an optional list of files to be included.
  73.  
  74.  
  75. Command format:  UNZ  zipname[.ZIP]  [d[:]][\subdir]  [filenames]
  76.  
  77. Again, the drive letter being unzipped to can be specified without the
  78. colon (:) for compatibility with previous versions of SafeZip.  UNZ.EXE
  79. is merely a front-end to PKUNZIP.EXE, and will pass all parameters to
  80. PKUNZIP that were specified on the command line with the exception of
  81. appending a colon to the second parameter if it is a single letter and
  82. thus a valid drive specification.  PKUNZIP itself does not require that
  83. the path to be unzipped to be the second parameter, but UNZ does require
  84. that it be the second parameter in order to work its magic.  This "magic"
  85. that UNZ does if the second parameter is determined to be a FLOPPY drive,
  86. is add the -$ option to the PKUNZIP command line to ensure that any
  87. volume labels, if present, are recreated on the floppy disk.  Version 7
  88. has added an exception to this rule, however.  Now, if the current drive
  89. is a floppy drive, the volume label WILL be extracted even if the drive
  90. letter was not found in the second parameter.  As mentioned above in
  91. reference to ZIP.EXE, UNZ also assumes that only drives A and B are
  92. floppies, but UNZ also reads the SAFEFLOP environment to override this.
  93.  
  94. The -$ option is not the only thing UNZ automatically adds to the PKUNZIP
  95. command line.  The -D and -JHSR options are also added to ensure that
  96. subdirectories and files with hidden, system and read-only attributes are
  97. recreated properly.  These options are used on both hard and floppy
  98. drives, unless it is determined that UNZ is being used to unzip temporary
  99. files from within SHEZ.  In this case, the command line is passed to
  100. PKUNZIP without the -$, -D or -JHSR options.  These options ARE used from
  101. within SHEZ when appropriate for files being unzipped normally.  This
  102. support for SHEZ was the main reason UNZ was rewritten in Pascal for
  103. version 6.  To use UNZ from SHEZ, just configure SHEZ to call UNZ.EXE
  104. rather than PKUNZIP.EXE.
  105.  
  106. UNZ also does automatic virus scanning with McAfee's SCAN.EXE.  This
  107. option is enabled by setting SAFEZIP=SCAN in AUTOEXEC.BAT.  Again, UNZ
  108. requires that the location of the unzipped files be specified as the
  109. second parameter so that it can pass this information to SCAN.  However,
  110. if ONLY the zipname is specified, so that the files are unzipped to the
  111. current directory, UNZ will tell SCAN to search the current directory by
  112. using *.* as the filespec.  In SafeZip version 7, UNZ now also recognizes
  113. that it is running from SHEZ, and also uses the *.* filespec in this
  114. case.  UNZ uses the SCAN /SUB option to search subdirectories of the
  115. directory unzipped into for viruses, so this will, of course, result in
  116. your whole drive being scanned if you unzip into the root directory.
  117. SCANV80 or above is required if SAFEZIP=SCAN is set because the /SUB
  118. option was added in v80.
  119.  
  120. Well, thats about it.  SafeZip is a free utility, and the latest version
  121. is always a free download on Mother Lode.  If you don't have an account
  122. on Mother Lode, you should!  If you would like the number and NUP for
  123. Mother Lode, please leave a message to Brad Carlton on SpamLand, The
  124. Realm of Immortality, 10 Downing, Paradise Springs or Wastelands III.
  125.  
  126. And last, but not least, thanks, Rick Klein for your help with TP6!
  127.